package com.csu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csu.mall.common.dto.AttrTo;
import com.csu.mall.common.utils.PageUtils;
import com.csu.mall.product.entity.AttrEntity;
import com.csu.mall.product.entity.ProductAttrValueEntity;
import com.csu.mall.product.vo.AttrResVo;
import com.csu.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhenhuanli
 * @email 743879362@qq.com
 * @date 2022-09-16 11:42:54
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Long catelogId, Map<String, Object> params, int attrType);

    void saveAttr(AttrVo attrVo);

    AttrResVo getAttrResVo(Long attrId);

    void updateAttr(AttrVo attr);

    void updateSpuAttrValueEntity(Long spuId, List<ProductAttrValueEntity> attrValueEntities);

    AttrTo getAttrResTo(Long attrId);
}

